<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libcoap: async.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">libcoap<span id="projectnumber">&#160;4.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('async_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">async.h</div></div>
</div><!--header-->
<div class="contents">
<a href="async_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment"> * async.h -- state management for asynchronous messages</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment"> *</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment"> * Copyright (C) 2010-2011 Olaf Bergmann &lt;bergmann@tzi.org&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment"> *</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="comment"> * This file is part of the CoAP library libcoap. Please see README for terms</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="comment"> * of use.</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="comment"> */</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#ifndef COAP_ASYNC_H_</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="preprocessor">#define COAP_ASYNC_H_</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="preprocessor">#include &quot;<a class="code" href="net_8h.html">net.h</a>&quot;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="preprocessor">#ifndef WITHOUT_ASYNC</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span> </div>
<div class="foldopen" id="foldopen00031" data-start="{" data-end="};">
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="structcoap__async__state__t.html">   31</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="structcoap__async__state__t.html">coap_async_state_t</a> {</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="structcoap__async__state__t.html#a34237f37d4c44962f4c4f0dbf39560c1">   32</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code hl_variable" href="structcoap__async__state__t.html#a34237f37d4c44962f4c4f0dbf39560c1">flags</a>;  </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="structcoap__async__state__t.html#a2ce04f273a47df97dfb8af270c858007">   39</a></span>  <a class="code hl_typedef" href="group__clock.html#ga97ff1502e211b4ee6c3f15a598833438">coap_tick_t</a> <a class="code hl_variable" href="structcoap__async__state__t.html#a2ce04f273a47df97dfb8af270c858007">created</a>;</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span> </div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="structcoap__async__state__t.html#a8bfdf12963290e8284e1510b093b17c1">   45</a></span>  <span class="keywordtype">void</span> *<a class="code hl_variable" href="structcoap__async__state__t.html#a8bfdf12963290e8284e1510b093b17c1">appdata</a>;</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="structcoap__async__state__t.html#ae1874a371493a956e758306efe180f28">   46</a></span>  uint16_t <a class="code hl_variable" href="structcoap__async__state__t.html#ae1874a371493a956e758306efe180f28">message_id</a>;       </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="structcoap__async__state__t.html#a9c0087c5ff046a7f49b036f1d1d22657">   47</a></span>  <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *<a class="code hl_variable" href="structcoap__async__state__t.html#a9c0087c5ff046a7f49b036f1d1d22657">session</a>;         </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="structcoap__async__state__t.html#af6bd1cb2573d3b38e5c1c1175d52f471">   48</a></span>  <a class="code hl_typedef" href="pdu_8h.html#ac60fb9284ace878df3db4a2d621d9a8d">coap_tid_t</a> <a class="code hl_variable" href="structcoap__async__state__t.html#af6bd1cb2573d3b38e5c1c1175d52f471">id</a>;                   </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="structcoap__async__state__t.html#ac374efafdd91c332f92c8fc5f33f0a0e">   49</a></span>  <span class="keyword">struct </span><a class="code hl_struct" href="structcoap__async__state__t.html">coap_async_state_t</a> *<a class="code hl_variable" href="structcoap__async__state__t.html#ac374efafdd91c332f92c8fc5f33f0a0e">next</a>; </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="structcoap__async__state__t.html#a9ac15543c19c679be1f77442671454fb">   50</a></span>  <span class="keywordtype">size_t</span> <a class="code hl_variable" href="structcoap__async__state__t.html#a9ac15543c19c679be1f77442671454fb">tokenlen</a>;                 </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="structcoap__async__state__t.html#ada1019c039810e4f719866f773ac2fb8">   51</a></span>  <a class="code hl_typedef" href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code hl_variable" href="structcoap__async__state__t.html#ada1019c039810e4f719866f773ac2fb8">token</a>[8];                </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="group__coap__async.html#ga1ef26cbbbb5f889a55ef91270dcdf5a6">   52</a></span>} <a class="code hl_struct" href="structcoap__async__state__t.html">coap_async_state_t</a>;</div>
</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span><span class="comment">/* Definitions for Async Status Flags These flags can be used to control the</span></div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span><span class="comment"> * behaviour of asynchronous response generation.</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span><span class="comment"> */</span></div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="group__coap__async.html#gaf3c112eaa3f262731ed3507a228bf776">   57</a></span><span class="preprocessor">#define COAP_ASYNC_CONFIRM   0x01  </span></div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="group__coap__async.html#ga0e2fc01767b333ad5badc838014049e6">   58</a></span><span class="preprocessor">#define COAP_ASYNC_SEPARATE  0x02  </span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="group__coap__async.html#gac7fcd5adcc9fb3cc90ba2ce6695ee6d0">   59</a></span><span class="preprocessor">#define COAP_ASYNC_OBSERVED  0x04  </span></div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="group__coap__async.html#gab13ab4a40fab483ee2eaef1ac39fd1d8">   62</a></span><span class="preprocessor">#define COAP_ASYNC_RELEASE_DATA  0x08</span></div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span> </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span><a class="code hl_struct" href="structcoap__async__state__t.html">coap_async_state_t</a> *</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span><a class="code hl_function" href="group__coap__async.html#ga7ff79a6925e27b7146184135023e1b40">coap_register_async</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context,</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>                    <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *<a class="code hl_variable" href="structcoap__async__state__t.html#a9c0087c5ff046a7f49b036f1d1d22657">session</a>,</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>                    <a class="code hl_struct" href="structcoap__pdu__t.html">coap_pdu_t</a> *request,</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>                    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code hl_variable" href="structcoap__async__state__t.html#a34237f37d4c44962f4c4f0dbf39560c1">flags</a>,</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>                    <span class="keywordtype">void</span> *data);</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span> </div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span><span class="keywordtype">int</span> <a class="code hl_function" href="group__coap__async.html#gadec4e4c177dd62a1853360ddbf69258e">coap_remove_async</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context,</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno">  108</span>                      <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *<a class="code hl_variable" href="structcoap__async__state__t.html#a9c0087c5ff046a7f49b036f1d1d22657">session</a>,</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span>                      <a class="code hl_typedef" href="pdu_8h.html#ac60fb9284ace878df3db4a2d621d9a8d">coap_tid_t</a> <span class="keywordtype">id</span>,</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span>                      <a class="code hl_struct" href="structcoap__async__state__t.html">coap_async_state_t</a> **s);</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span> </div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span><span class="keywordtype">void</span></div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span><a class="code hl_function" href="group__coap__async.html#ga32024a34a383832e6692d3a439fc67c7">coap_free_async</a>(<a class="code hl_struct" href="structcoap__async__state__t.html">coap_async_state_t</a> *state);</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span> </div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span><a class="code hl_struct" href="structcoap__async__state__t.html">coap_async_state_t</a> *<a class="code hl_function" href="group__coap__async.html#gabcb03afad78869b28826d780f37c818b">coap_find_async</a>(<a class="code hl_struct" href="structcoap__context__t.html">coap_context_t</a> *context, <a class="code hl_struct" href="structcoap__session__t.html">coap_session_t</a> *<a class="code hl_variable" href="structcoap__async__state__t.html#a9c0087c5ff046a7f49b036f1d1d22657">session</a>, <a class="code hl_typedef" href="pdu_8h.html#ac60fb9284ace878df3db4a2d621d9a8d">coap_tid_t</a> <span class="keywordtype">id</span>);</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno">  136</span> </div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span><a class="code hl_define" href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a> <span class="keywordtype">void</span></div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"><a class="line" href="group__coap__async.html#ga45f50bcf81bc5fb17a3ee9907e7beae7">  143</a></span><a class="code hl_function" href="group__coap__async.html#ga45f50bcf81bc5fb17a3ee9907e7beae7">coap_touch_async</a>(<a class="code hl_struct" href="structcoap__async__state__t.html">coap_async_state_t</a> *s) { <a class="code hl_function" href="group__clock.html#ga350826988e63ff446a2a84034ecdf43d">coap_ticks</a>(&amp;s-&gt;<a class="code hl_variable" href="structcoap__async__state__t.html#a2ce04f273a47df97dfb8af270c858007">created</a>); }</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span> </div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span><span class="preprocessor">#endif </span><span class="comment">/*  WITHOUT_ASYNC */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span> </div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno">  149</span><span class="preprocessor">#endif </span><span class="comment">/* COAP_ASYNC_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="agroup__clock_html_ga350826988e63ff446a2a84034ecdf43d"><div class="ttname"><a href="group__clock.html#ga350826988e63ff446a2a84034ecdf43d">coap_ticks</a></div><div class="ttdeci">void coap_ticks(coap_tick_t *t)</div><div class="ttdoc">Sets t to the internal time with COAP_TICKS_PER_SECOND resolution.</div></div>
<div class="ttc" id="agroup__clock_html_ga97ff1502e211b4ee6c3f15a598833438"><div class="ttname"><a href="group__clock.html#ga97ff1502e211b4ee6c3f15a598833438">coap_tick_t</a></div><div class="ttdeci">uint64_t coap_tick_t</div><div class="ttdoc">This data type represents internal timer ticks with COAP_TICKS_PER_SECOND resolution.</div><div class="ttdef"><b>Definition</b> <a href="coap__time_8h_source.html#l00085">coap_time.h:85</a></div></div>
<div class="ttc" id="agroup__coap__async_html_ga32024a34a383832e6692d3a439fc67c7"><div class="ttname"><a href="group__coap__async.html#ga32024a34a383832e6692d3a439fc67c7">coap_free_async</a></div><div class="ttdeci">void coap_free_async(coap_async_state_t *state)</div><div class="ttdoc">Releases the memory that was allocated by coap_async_state_init() for the object s.</div><div class="ttdef"><b>Definition</b> <a href="async_8c_source.html#l00101">async.c:101</a></div></div>
<div class="ttc" id="agroup__coap__async_html_ga45f50bcf81bc5fb17a3ee9907e7beae7"><div class="ttname"><a href="group__coap__async.html#ga45f50bcf81bc5fb17a3ee9907e7beae7">coap_touch_async</a></div><div class="ttdeci">COAP_STATIC_INLINE void coap_touch_async(coap_async_state_t *s)</div><div class="ttdoc">Updates the time stamp of s.</div><div class="ttdef"><b>Definition</b> <a href="async_8h_source.html#l00143">async.h:143</a></div></div>
<div class="ttc" id="agroup__coap__async_html_ga7ff79a6925e27b7146184135023e1b40"><div class="ttname"><a href="group__coap__async.html#ga7ff79a6925e27b7146184135023e1b40">coap_register_async</a></div><div class="ttdeci">coap_async_state_t * coap_register_async(coap_context_t *context, coap_session_t *session, coap_pdu_t *request, unsigned char flags, void *data)</div><div class="ttdoc">Allocates a new coap_async_state_t object and fills its fields according to the given request.</div><div class="ttdef"><b>Definition</b> <a href="async_8c_source.html#l00035">async.c:35</a></div></div>
<div class="ttc" id="agroup__coap__async_html_gabcb03afad78869b28826d780f37c818b"><div class="ttname"><a href="group__coap__async.html#gabcb03afad78869b28826d780f37c818b">coap_find_async</a></div><div class="ttdeci">coap_async_state_t * coap_find_async(coap_context_t *context, coap_session_t *session, coap_tid_t id)</div><div class="ttdoc">Retrieves the object identified by id from the list of asynchronous transactions that are registered ...</div><div class="ttdef"><b>Definition</b> <a href="async_8c_source.html#l00082">async.c:82</a></div></div>
<div class="ttc" id="agroup__coap__async_html_gadec4e4c177dd62a1853360ddbf69258e"><div class="ttname"><a href="group__coap__async.html#gadec4e4c177dd62a1853360ddbf69258e">coap_remove_async</a></div><div class="ttdeci">int coap_remove_async(coap_context_t *context, coap_session_t *session, coap_tid_t id, coap_async_state_t **s)</div><div class="ttdoc">Removes the state object identified by id from context.</div><div class="ttdef"><b>Definition</b> <a href="async_8c_source.html#l00089">async.c:89</a></div></div>
<div class="ttc" id="alibcoap_8h_html_a58b4446dccd0b8c21b3532ef6b77a57d"><div class="ttname"><a href="libcoap_8h.html#a58b4446dccd0b8c21b3532ef6b77a57d">COAP_STATIC_INLINE</a></div><div class="ttdeci">#define COAP_STATIC_INLINE</div><div class="ttdef"><b>Definition</b> <a href="libcoap_8h_source.html#l00038">libcoap.h:38</a></div></div>
<div class="ttc" id="anet_8h_html"><div class="ttname"><a href="net_8h.html">net.h</a></div></div>
<div class="ttc" id="apdu_8h_html_ac60fb9284ace878df3db4a2d621d9a8d"><div class="ttname"><a href="pdu_8h.html#ac60fb9284ace878df3db4a2d621d9a8d">coap_tid_t</a></div><div class="ttdeci">int coap_tid_t</div><div class="ttdoc">coap_tid_t is used to store CoAP transaction id, i.e.</div><div class="ttdef"><b>Definition</b> <a href="pdu_8h_source.html#l00238">pdu.h:238</a></div></div>
<div class="ttc" id="astructcoap__async__state__t_html"><div class="ttname"><a href="structcoap__async__state__t.html">coap_async_state_t</a></div><div class="ttdef"><b>Definition</b> <a href="async_8h_source.html#l00031">async.h:31</a></div></div>
<div class="ttc" id="astructcoap__async__state__t_html_a2ce04f273a47df97dfb8af270c858007"><div class="ttname"><a href="structcoap__async__state__t.html#a2ce04f273a47df97dfb8af270c858007">coap_async_state_t::created</a></div><div class="ttdeci">coap_tick_t created</div><div class="ttdoc">Holds the internal time when the object was registered with a resource.</div><div class="ttdef"><b>Definition</b> <a href="async_8h_source.html#l00039">async.h:39</a></div></div>
<div class="ttc" id="astructcoap__async__state__t_html_a34237f37d4c44962f4c4f0dbf39560c1"><div class="ttname"><a href="structcoap__async__state__t.html#a34237f37d4c44962f4c4f0dbf39560c1">coap_async_state_t::flags</a></div><div class="ttdeci">unsigned char flags</div><div class="ttdoc">holds the flags to control behaviour</div><div class="ttdef"><b>Definition</b> <a href="async_8h_source.html#l00032">async.h:32</a></div></div>
<div class="ttc" id="astructcoap__async__state__t_html_a8bfdf12963290e8284e1510b093b17c1"><div class="ttname"><a href="structcoap__async__state__t.html#a8bfdf12963290e8284e1510b093b17c1">coap_async_state_t::appdata</a></div><div class="ttdeci">void * appdata</div><div class="ttdoc">This field can be used to register opaque application data with the asynchronous state object.</div><div class="ttdef"><b>Definition</b> <a href="async_8h_source.html#l00045">async.h:45</a></div></div>
<div class="ttc" id="astructcoap__async__state__t_html_a9ac15543c19c679be1f77442671454fb"><div class="ttname"><a href="structcoap__async__state__t.html#a9ac15543c19c679be1f77442671454fb">coap_async_state_t::tokenlen</a></div><div class="ttdeci">size_t tokenlen</div><div class="ttdoc">length of the token</div><div class="ttdef"><b>Definition</b> <a href="async_8h_source.html#l00050">async.h:50</a></div></div>
<div class="ttc" id="astructcoap__async__state__t_html_a9c0087c5ff046a7f49b036f1d1d22657"><div class="ttname"><a href="structcoap__async__state__t.html#a9c0087c5ff046a7f49b036f1d1d22657">coap_async_state_t::session</a></div><div class="ttdeci">coap_session_t * session</div><div class="ttdoc">transaction session</div><div class="ttdef"><b>Definition</b> <a href="async_8h_source.html#l00047">async.h:47</a></div></div>
<div class="ttc" id="astructcoap__async__state__t_html_ac374efafdd91c332f92c8fc5f33f0a0e"><div class="ttname"><a href="structcoap__async__state__t.html#ac374efafdd91c332f92c8fc5f33f0a0e">coap_async_state_t::next</a></div><div class="ttdeci">struct coap_async_state_t * next</div><div class="ttdoc">internally used for linking</div><div class="ttdef"><b>Definition</b> <a href="async_8h_source.html#l00049">async.h:49</a></div></div>
<div class="ttc" id="astructcoap__async__state__t_html_ada1019c039810e4f719866f773ac2fb8"><div class="ttname"><a href="structcoap__async__state__t.html#ada1019c039810e4f719866f773ac2fb8">coap_async_state_t::token</a></div><div class="ttdeci">uint8_t token[8]</div><div class="ttdoc">the token to use in a response</div><div class="ttdef"><b>Definition</b> <a href="async_8h_source.html#l00051">async.h:51</a></div></div>
<div class="ttc" id="astructcoap__async__state__t_html_ae1874a371493a956e758306efe180f28"><div class="ttname"><a href="structcoap__async__state__t.html#ae1874a371493a956e758306efe180f28">coap_async_state_t::message_id</a></div><div class="ttdeci">uint16_t message_id</div><div class="ttdoc">id of last message seen</div><div class="ttdef"><b>Definition</b> <a href="async_8h_source.html#l00046">async.h:46</a></div></div>
<div class="ttc" id="astructcoap__async__state__t_html_af6bd1cb2573d3b38e5c1c1175d52f471"><div class="ttname"><a href="structcoap__async__state__t.html#af6bd1cb2573d3b38e5c1c1175d52f471">coap_async_state_t::id</a></div><div class="ttdeci">coap_tid_t id</div><div class="ttdoc">transaction id</div><div class="ttdef"><b>Definition</b> <a href="async_8h_source.html#l00048">async.h:48</a></div></div>
<div class="ttc" id="astructcoap__context__t_html"><div class="ttname"><a href="structcoap__context__t.html">coap_context_t</a></div><div class="ttdoc">The CoAP stack's global state is stored in a coap_context_t object.</div><div class="ttdef"><b>Definition</b> <a href="net_8h_source.html#l00148">net.h:148</a></div></div>
<div class="ttc" id="astructcoap__pdu__t_html"><div class="ttname"><a href="structcoap__pdu__t.html">coap_pdu_t</a></div><div class="ttdoc">structure for CoAP PDUs token, if any, follows the fixed size header, then options until payload mark...</div><div class="ttdef"><b>Definition</b> <a href="pdu_8h_source.html#l00285">pdu.h:285</a></div></div>
<div class="ttc" id="astructcoap__session__t_html"><div class="ttname"><a href="structcoap__session__t.html">coap_session_t</a></div><div class="ttdef"><b>Definition</b> <a href="coap__session_8h_source.html#l00056">coap_session.h:56</a></div></div>
<div class="ttc" id="authash_8h_html_aba7bc1797add20fe3efdf37ced1182c5"><div class="ttname"><a href="uthash_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a></div><div class="ttdeci">unsigned char uint8_t</div><div class="ttdef"><b>Definition</b> <a href="uthash_8h_source.html#l00079">uthash.h:79</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_a14d23a24002734ac2a3b997119f008e.html">coap2</a></li><li class="navelem"><a class="el" href="async_8h.html">async.h</a></li>
    <li class="footer">Generated on Fri Dec 27 2024 09:57:44 for libcoap by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </li>
  </ul>
</div>
</body>
</html>
